#!/bin/bash
# Copyrignt (c) xuzeshui.com. All Rights Reserved.
# Author: Zeshui Xu<i@xuzeshui.com>
# Created Time: 2016-09-05 18:40:31
# Last Modified: 2016-11-14 10:55:22
# File Name: feedback-usersubmit.sh
# Description: 

#host="127.0.0.1:8123"
host="test00.sz.doubimeizhi.com"
appkey="19854c206c2f4a82b33ce98872ab31aa"
salt="eb90e35a31b63415f717482d209f8aa2"
tm=`date +%s`
sessionid="68904c68a4871a32ec9c80806863d"

sign=`echo -n "appkey${appkey}sessionid${sessionid}time${tm}${salt}" | md5sum | awk '{print $1}'`

url="https://${host}/v1/account/userprofile/query?appkey=${appkey}&time=${tm}&sign=${sign}&sessionid=${sessionid}"

curl -v -k -H "host: qkleague.app.doubimeizhi.com"  "${url}"
